﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="DocumentManagement.Views.UpdateAuditFailedBaoGao" %>

<%@ Import Namespace="DocumentManagement.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        更新报告</h2>
    <div>
        <%using (this.Html.BeginForm("UpdateBaoGao", "BaoGao", FormMethod.Post, new { enctype = "multipart/form-data" }))
          { %>
        <input type="hidden" name="id" value="<%=this.Model.BG.id %>" />
        <div>
            文件编号：<input type="text" name="wjbh" value="<%=this.Model.BG.wjbh %>" />
        </div>
        <div>
            <label for="">
                委托来源</label><input type="text" name="wtly" value="<%=this.Model.BG.wtly %>" />
        </div>
        <div>
            <label for="">
                委托方</label><input type="text" name="wtf" value="<%=this.Model.BG.wtf %>" />
        </div>
        <div>
            <label for="">
                项目座落</label><input type="text" name="xmzl" value="<%=this.Model.BG.xmzl %>" />
        </div>
        <div>
            <label for="">
                建筑面积</label><input type="text" name="jzhmj" value="<%=this.Model.BG.jzhmj %>" />
        </div>
        <div>
            <label for="">
                土地面积</label><input type="text" name="tdmj" value="<%=this.Model.BG.tdmj %>" />
        </div>
        <div>
            <label for="">
                业态</label>
            <%=this.Html.DropDownList("yt", new SelectListItem[] {
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.ZhuZhai), Value=((int)YeTai.ZhuZhai).ToString(), Selected= ((int)YeTai.ZhuZhai == this.Model.BG.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.GongYe), Value=((int)YeTai.GongYe).ToString(), Selected= ((int)YeTai.GongYe == this.Model.BG.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.ShangYe), Value=((int)YeTai.ShangYe).ToString(), Selected= ((int)YeTai.ShangYe == this.Model.BG.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.BanGong), Value=((int)YeTai.BanGong).ToString(), Selected= ((int)YeTai.BanGong == this.Model.BG.yt)},
                      new SelectListItem() { Text = Utility.GetEnumText(YeTai.QiTa), Value=((int)YeTai.QiTa).ToString(), Selected= ((int)YeTai.QiTa == this.Model.BG.yt)}
                  })
            %>
        </div>
        <div>
            <label for="">
                竣工日期</label><input type="text" name="jgrq" value="<%=this.Model.BG.jgrq %>" />
        </div>
        <div>
            <label for="">
                建筑层高</label><input type="text" name="jzhcg" value="<%=this.Model.BG.jzhcg %>" />
        </div>
        <div>
            <label for="">
                评估总价</label><input type="text" name="pgzj" value="<%=this.Model.BG.pgzj %>" />
        </div>
        <div>
            <label for="">
                评估单价</label><input type="text" name="pgdj" value="<%=this.Model.BG.pgdj %>" />
        </div>
        <div>
            <label for="">
                评估净值</label><input type="text" name="pgjzh" value="<%=this.Model.BG.pgjzh %>" />
        </div>
        <div>
            <label for="">
                现场勘查员</label><input type="text" name="xchkchy" value="<%=this.Model.BG.xchkchy %>" />
        </div>
        <div>
            <label for="">
                项目区域</label><input type="text" name="xmqy" value="<%=this.Model.BG.xmqy %>" />
        </div>
        <div>
            <label for="">
                估价完成日期</label><input type="text" name="pgwchrq" value="<%=this.Model.BG.pgwchrq %>" />
        </div>
        <div>
            <label for="">
                估价时点</label><input type="text" name="gjshd" value="<%=this.Model.BG.gjshd %>" />
        </div>
        <div>
            <label for="">
                估价作业人员</label><input type="text" name="gjzyry" value="<%=this.Model.BG.gjzyry %>" />
        </div>
        <div>
            <label for="">
                经办人</label><input type="text" name="wtr" value="<%=this.Model.BG.wtr %>" />
        </div>
        <div>
            <label>
                项目名称</label>
            <input type="text" name="xmmch"  value="<%=this.Model.BG.xmmch %>" />
        </div>
        <div>
            <label>
                产权人</label>
            <input type="text" name="chqr" value="<%=this.Model.BG.chqr %>" />
        </div>
        <div>
            <label>
                估价起始日期</label>
            <input type="text" name="gjqshrq" value="<%=this.Model.BG.gjqshrq %>" />
        </div>
        <div>
            <label>
                估价目的</label>
            <input type="text" name="gjmd" value="<%=this.Model.BG.gjmd %>" />
        </div>
        <div>
            <label>
                估价方法</label>
            <input type="text" name="gjff" value="<%=this.Model.BG.gjff %>" />
        </div>
        <div>
            <label>
                土地登记用途</label>
            <input type="text" name="tddjyt" value="<%=this.Model.BG.tddjyt %>" />
        </div>
        <div>
            <label>
                房屋类型</label>
            <input type="text" name="fwlx" value="<%=this.Model.BG.fwlx %>" />
        </div>
        <div>
            <label>
                土地取得方式</label>
            <input type="text" name="tdqdfsh" value="<%=this.Model.BG.tdqdfsh %>" />
        </div>
        <div>
            <label>
                容积率</label>
            <input type="text" name="rjl" value="<%=this.Model.BG.rjl %>" />
        </div>
        <div>
            <label>
                楼面地价</label>
            <input type="text" name="lmdj" value="<%=this.Model.BG.lmdj %>" />
        </div>
        <div>
            <label>
                土地总价格</label>
            <input type="text" name="tdzjg" value="<%=this.Model.BG.tdzjg %>" />
        </div>
        <%if (this.Model.BG.YuGuDanReference.EntityKey != null)
          { %>
        <div>
            <a target="_blank" href="<%=this.Url.Action("ShowYuGuDanDetail", "yugudan", new {id = this.Model.BG.YuGuDanReference.EntityKey.GetKeyValueByName("id")}) %>">
                相关联的预估单 </a>
        </div>
        <%} %>
        <div>
            <label for="">
                报告附件</label><input type="file" name="file" />
            <%if (this.Model.BG.hasAttachment)
              { %>
            <a href="<%=this.Url.Action("DownloadBaoGaoAttachment", "BaoGao", new {id= this.Model.BG.id})%>">
                原来的附件</a>
            <%} %>
        </div>
        <div>
            <input type="submit" value="更新报告并提交一审" />
        </div>
        <%} %>
    </div>
</asp:Content>
